﻿using System;
using System.Runtime.Serialization;

namespace Dynamic.Facades.EntLib.Logging
{
    /// <summary>
    /// 日志类型
    /// </summary>
    [Flags]
    [DataContract]
    public enum EventCategory
    {
        /// <summary>
        /// 默认
        /// </summary>
        [DataMember]
        General = 1,

        /// <summary>
        /// 跟踪
        /// </summary>
        [DataMember]
        Trace = 2,

        /// <summary>
        /// 调试
        /// </summary>
        [DataMember]
        Debug = 4,

        /// <summary>
        /// 报错
        /// </summary>
        [DataMember]
        Exception = 8,

        /// <summary>
        /// 页面
        /// </summary>
        [DataMember]
        UIEvents = 16,

        /// <summary>
        /// 数据访问
        /// </summary>
        [DataMember]
        DataAccessEvents = 32,

        /// <summary>
        /// 故障恢复
        /// </summary>
        [DataMember]
        Troubleshooting = 64
    }
}
